import 'package:dio/dio.dart';
import 'package:flutter/services.dart';
import 'package:flutter_boost/channel/boost_channel.dart';
import 'package:flutter_boost/flutter_boost.dart';
import 'package:yybb_flutter/Macros/yyb_macros.dart';

class YYBBPrintLog{

  static const String _TAG_DEF = "###common_utils###";

  static bool debuggable = false; //是否是debug模式,true: log v 不输出.
  static String TAG = _TAG_DEF;
  //
  // YYBBPrintLog._();
  //第一步：设置平台，并进行命名
  //   YYBBPrintLog(String msg,  static const _platform = const MethodChannel('com.common.ininin.assistant.flutter.io/log'); {String tag}) {

     YYBBPrintLog(Object object) {
       String tag = "FlutterPrintLog";
      StringBuffer sb = new StringBuffer();
      sb.write(object);
      YYBBPlatform.invokeMethod('FlutterPrintLog', {'tag': tag, 'msg': "Flutter📍📍📍"+ sb.toString()});

    }

}